html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
dd {
    margin: 0;
}
body {
    font-size: 14px;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
img {
    border: none;
    vertical-align: middle;
}
a {
    text-decoration: none;
    color: #333;
}
a:hover {
    color: #b4a078;
}

input {
    margin: 0;
    padding: 0;
    vertical-align: middle;
    border: 1px solid #ccc;
}

label {
    vertical-align: middle;
}

table {
    border-collapse: collapse; //去除单元格
}

th,
td {
    padding: 0;
}

.center {
    width: 1090px;
    margin: 0 auto;
}

.left {
    float: left;
}

.right {
    float: right;
}

.clearfix:after {
    content: "";
    display: block;
    clear: both;
}

//放大图片
.scaleImg {
    img {
        transition: 1s ease-out;
        transform: scale(1);
    }

    &:hover {
        img {
            transform: scale(1.1);
        }
    }
}

//视图页加载数据配和 js,懒加载
.original {
    //默认占位背景
    background: #f4f4f4 url("../images/icon_organize.png") center no-repeat;
}

// // 响应式
// @media screen and (max-width: 1090px) {
//     .center{
//         width: 100%;
//     }
// }

// -------------头部-------------
#head {
    border-bottom: 1px solid #f3f3f3;
    box-shadow: 0 0.0533rem 0.0533rem #f3f3f3;
    .head {
        background: #333;
        font-style: 12px;
        line-height: 36px;

        li {
            float: left;
            position: relative;
            a {
                color: #ccc;
                padding: 0 0.2667rem;
                border-left: 1px solid #555;

                &:hover {
                    color: #fff;
                }

                &.noborder {
                    border: none;
                }
            }
        }
    }
    .left {
        color: #ccc;
    }
    .right {
        color: #ccc;
    }

    .customer {
        padding-right: 10px;
        margin-right: 18px;
        background: url("../images/icon_p2s.png") 66px center no-repeat;
        background-size: 10px;
        &:hover {
            background: url("../images/icon_p2x.png") 66px center no-repeat;
            background-size: 10px;
        }

        //客服服务
        ul {
            position: absolute;
            border: 1px solid #ddd;
            background: #fff;
            box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
            display: none;
            z-index: 2;

            // 伪类
            &::before {
                width: 10px;
                height: 6px;
                content: "";
                display: block;
                background: url("../images/icon_p2s.png") center no-repeat;
                background-size: 6px;
                position: absolute;
                margin: auto;
                left: 0;
                right: 0;
                top: -6px;
            }
            li {
                float: none;
                z-index: 2;
                // 客服时间
                &.phone {
                    background: url("../images/icon_p2s.png") 58px center no-repeat;
                    background-size: 10px;

                    &:hover {
                        background: url("../images/icon_p2x.png") 58px center no-repeat;
                        background-size: 10px;
                        div {
                            display: block;
                        }
                    }

                    div {
                        position: absolute;
                        width: 110px;
                        height: 57px;
                        right: -110px;
                        top: 0;
                        line-height: 20px;
                        text-align: center;
                        background: #fff;
                        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
                        display: none;
                        // 时间
                        p:nth-child(1) {
                            font-size: 14px;
                            color: #999;
                            margin-top: 12px;
                        }

                        p:nth-child(2) {
                            font-size: 10px;
                            color: #ccc;
                        }
                    }
                }
            }

            a {
                display: block;
                padding: 0;
                border-left: none;
                border-bottom: 1px solid #ddd;
                text-align: center;
                margin: 0 10px;
                color: #999;
                font-size: 12px;

                &:hover {
                    color: #b4a078;
                }
                &.noborder {
                    border-bottom: none;
                }
            }
        }

        &:hover {
            //客服服务hover显示
            ul {
                display: block;
            }
        }
    }

    //下载应用
    .head {
        .down {
            z-index: 2;

            a {
                padding-left: 25px;
                background: url("../images/icon_p2s.png") 10px center no-repeat;
                background-size: 10px;
            }

            div {
                position: absolute;
                border: 1px solid #ddd;
                background: #fff;
                box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);

                left: -45px;
                line-height: 20px;
                color: #999;

                font-size: 12px;
                text-align: center;
                padding: 8px;
                display: none;

                img {
                    width: 100%;
                }

                // 伪类
                &::before {
                    width: 10px;
                    height: 6px;
                    content: "";
                    display: block;
                    background: url("../images/icon_p2s.png") center no-repeat;
                    background-size: 6px;
                    position: absolute;
                    margin: auto;
                    left: 0;
                    right: 0;
                    top: -6px;
                }

                &:hover {
                    color: #b4a078;
                }
            }

            &:hover div {
                display: block;
            }
        }
    }
}

.margin10 {
    margin: 10px;
}

// 搜索部分
.search {
    margin: 40px 0;

    .center {
        position: relative;
        height: 60px;
    }

    h1 {
        position: absolute;
        left: 50%;
        margin-left: -40px;
    }

    .searchBox {
        height: 25px;
        margin-top: 16px;
        margin: 16px 40px;
        float: right;
        vertical-align: middle;
        font-size: 0;

        input {
            height: 25px;
            width: 250px;
            border: none;
            border-bottom: 1px solid #d8cebc;
            border-radius: 3px;
            padding-left: 10px;
            vertical-align: middle;
            color: #b4a078;
            outline: none;
            font-size: 12px;
        }
        a {
            display: inline-block;
            height: 25px;
            width: 25px;
            background: url("../images/icon_p2s.png") center no-repeat;
            background-size: 16px;
            vertical-align: middle;
        }
    }
}

// ------------导航部分-----------

.nav {
    position: relative;
    background: #fff;

    .logo {
        width: 20px;
        height: 20px;
        display: none;
    }

    .login {
        display: none;
    }

    .navBar {
        li {
            display: inline-block;
            font-size: 14px;
            padding: 0 30px;
            height: 50px;
            &.separate {
                padding: 0;
                color: #ccc;
            }
            &.active {
                a {
                    border-bottom: #b4a078 2px solid;
                    font-weight: 500;
                    &:hover {
                        border-bottom: #b4a078 2px solid;
                    }
                }
            }

            a {
                font-weight: 500;
                &:hover {
                    border-bottom: #b4a078 2px solid;
                }
            }
        }
    }
    .center {
        position: relative;
    }

    // 购物车父级样式
    .cartWrap {
        position: absolute;
        right: 0;
        top: -80px;
        width: 20px;
        height: 20px;
        cursor: pointer;
        background: url("../images/icon_p2x.png");
        background-size: 20px;

        i {
            font: 12px/20px "Microsoft YaHei";
            position: absolute;
            top: -12px;
            right: -12px;
            color: #fff;
            background: #d4282d;
            width: 20px;
            height: 20px;
            text-align: center;
            border-radius: 50%;
        }

        //购物样式
        .cart {
            display: none;
            width: 328px;
            border: 1px solid #b5a176;
            box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
            position: absolute;
            top: 30px;
            right: -22px;
            background: #fff;
            padding-top: 15px;

            &::after {
                content: "";
                display: block;
                width: 12px;
                height: 8px;
                background: url("../images/icon_p2x.png");
                background-size: 12px;
                position: absolute;
                top: -12px;
                right: 22px;
            }

            .list {
                height: 244px;
                position: relative;
                overflow: hidden;
               
                ul {

                    padding-left: 15px;
                    position: absolute;
                    left: 0;
                    top: 0;
    
                    li {

                        height: 60px;
                        margin-bottom: 10px;

                        .img {
                            float: left;
                            
                            img {
                                width: 56px;
                                height: 56px;
                                background: #f4f4f4;
                            }
                        }

                        .message {
                            float: left;
                            width: 160px;
                            margin-left: 10px;
                            padding-top: 10px;
                            font-size: 14px;
                            color: #333;
                            line-height: 22px;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                            width: 145px;

                            p:nth-child(1) {
                                text-overflow: ellipsis; // 省略号
                                overflow: hidden; //超出隐藏
                                white-space: nowrap;//不换行
                            }

                            p:nth-child(2) {
                                text-overflow: ellipsis; // 省略号
                                overflow: hidden; //超出隐藏
                                white-space: nowrap;//不换行
                                color: #ccc;
                            }

                        }

                        .price  {
                            float: left;
                            margin-top: 8px;
                            width: 55px;
                            font:12px/20px "Microsoft YaHei";
                            color: #b5a176;
                        }
                        .colse {
                            float: left;
                            width: 26px;
                            margin-left: 8px;
                            margin-top: 8px;
                            color: #000;
                        }
                    }
    
                }

                //购物车里滚动条样式
                .scollBar{
                    float: right;
                    width: 17px;
                    height: 244px;
                    background: #ccc;
                    span {
                        width: 17px;
                        height: 17px;
                    }
                    .topBtn { 
                        float: right;
                        background: url("../images/icon_x2p.png") 0 0 ;
                        background-size: 17px;
                        &:hover {
                            background: url("../images/icon_p2s.png") 0 0 ;
                            background-size: 17px;
                        }

                        &:active {
                            background: url("../images/icon_x2p.png") 0 0 ;
                            background-size: 17px;
                        }
                     }

                     .slideWarp{
                        position: relative;
                        height: 227px;
                        .slide{
                            position: absolute;
                            top: 17px;;
                            height: 27px;
                            width: 17px;
                            background: #c1c1c1;

                            &:hover {
                                background: #a9a9a9;
                            }

                            &:active {
                                background: #787878;
                            }
                        }
                     }


                    .bottomBtn{ 
                        float: right;
                        background: url("../images/icon_x2p.png") 0 0 ;
                        background-size: 17px;
                        &:hover {
                            background: url("../images/icon_p2s.png") 0 0 ;
                            background-size: 17px;
                        }

                        &:active {
                            background: url("../images/icon_x2p.png") 0 0 ;
                            background-size: 17px;
                        }
                     }
                }

                
            }
            .total{
                height: 66px;
                background: #f4f0ea;
                color: #333;
                font: 12px/66px "Microsoft YaHei";
                text-align: center;
                

                span {
                    color: #d4282d;
                }

                a{
                    display: inline-block;
                    width: 110px;
                    height: 36px;
                    line-height: 36px;
                    margin-left: 16px;
                    background: #b4a078;
                    color: #fff;

                    &:hover {
                        opacity: .8;
                        color: #fff;
                    }
                }
            }

           
        }


        //使用 js 控制显示
        // &:hover {
        //     .cart {
        //         display: block;
        //     }
        // }
    }

    // 弹出导航栏
    .subNav {
        display: none;
        text-align: center;
        font-size: 0;
        padding-bottom: 20px;
        box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);

        li {
            display: inline-block;
            font-size: 14px;
            padding: 0 30px;
            height: auto;
            a {
                font-weight: 500;
                padding-bottom: 5px;
                img {
                    width: 20px;
                    height: 20px;
                    display: block;
                    // vertical-align: middle;
                    margin: 0 auto 10px auto;
                }
            }
        }
    }


    
}

//--------------吸顶导航-----------
#navFix{
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);

    .logo {
        display: block;
        float: left;
        margin:  10px 30px 0 0 ;
       img{
        width: 40px;
        height: 35px;
       }

    }
    
    .navBar{
        float: left;

        li {
            height: 60px;
            line-height: 60px;
            padding: 0 20px;
           &:nth-last-child(1){
            display: none;
           } 
           &:nth-last-child(2){
            display: none;
           } 
           &:nth-last-child(3){
            display: none;
           } 
        }
    }

    .login {
        display: block;
        float: right;
        line-height: 60px;
        a{
            margin-right: 20px;
            font-size: 12px;
            color: #666;
        }
    }
    .cartWrap{
        position: relative;
        top: 20px;
        float: right;
    }
    .subNav{
        // display: block;
    }
}
